#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <SDL.h>
#include <SDL_image.h>
#include <iostream>

class graphics
{
    public:
        graphics();
        //intit function
        bool init(int width = 1280, int height = 1024);
        //cut a surface into a surface
        static SDL_Surface* subSurface(SDL_Surface* surface, SDL_Rect* rect); //surface that'll be cut, area to cut
        //blit function
        void drawImage(SDL_Surface* surface, SDL_Rect* rect); //surface, position
        void refresh();

        virtual ~graphics();

    protected:
    private:
        SDL_Surface* m_screen;
};

#endif // GRAPHICS_H
